@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/system/user/user_add.js"]}){
<style>
    .city{
        display: none;
    }
    .county{
        display: none;
    }
</style>
<form id="userForm" lay-filter="userForm" class="layui-form model-form">
    <input name="userId" type="hidden"/>
    <div class="layui-form-item">
        <label class="layui-form-label">账号<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="account" placeholder="请输入账号" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><span style="color: red;">*</span>层级</label>
        <div class="layui-input-block">
            <input type="radio" lay-filter="userLevel" name="userLevel" value="1" title="省级">
            <input type="radio" lay-filter="userLevel" name="userLevel" value="2" title="市级">
            <input type="radio" lay-filter="userLevel" name="userLevel" value="3" title="区县级">
        </div>
    </div>
    <div class="layui-form-item dept">
        <label class="layui-form-label">部门</label>
        <div class="layui-input-block">
            <select name="deptId" id="deptId" lay-filter="deptId">

            </select>
        </div>
    </div>
    <div class="layui-form-item city">
        <label class="layui-form-label"><span style="color: red;">*</span>市</label>
        <div class="layui-input-block">
            <select name="city" id="city" lay-filter="city">
                <option value="">请选择市</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item county">
        <label class="layui-form-label"><span style="color: red;">*</span>区县</label>
        <div class="layui-input-block">
            <select name="county" id="county" >
                <option value="">请选择区县</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">姓名<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="name" placeholder="请输入姓名" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">密码<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="password" placeholder="请输入密码" type="password" class="layui-input" lay-verify="required|psw" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">重复密码<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="rePassword" placeholder="请输入重复密码" type="password" class="layui-input" lay-verify="required|repsw" required/>
        </div>
    </div>

    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>
</form>
@}
